package com.example.chessbattleplatform.web.StorageIo.service.impl;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.chessbattleplatform.web.StorageIo.Pojo.Mapper.FileStorage;
import com.example.chessbattleplatform.web.StorageIo.Pojo.Vo.FileLimitVo;
import com.example.chessbattleplatform.web.StorageIo.Pojo.Vo.UploadFileVo;
import org.springframework.web.multipart.MultipartFile;

public interface FileServiceInterface extends IService<FileStorage> {
    // 查询文件所以数据并打印
    FileLimitVo InquireFile(int Current, int limit);

    // 添加文件上传的数据
    UploadFileVo uploadFile(MultipartFile file);

     // uuid, 查询文件上传的数据
     FileStorage selectByFileId(String fileId);

     // 删除文件上传的数据
     // 删除成功 为 true
     // 失败 为 false
     boolean deleteFile(String fileId);
}
